﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

public partial class public_page_left : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (SysCommon.isUserLogin() == true)
        {
            this.LoggedIn_Left.Visible = true;
            this.NotLoggedIn_Left.Visible = false;

            this.Lbl_user_name.Text = Convert.ToString(Session["user_name"]);
            this.Lbl_lastlogin_time.Text = ((DateTime)Session["lastlogin_time"]).ToString("yyyy/MM/dd HH:mm:ss");
        }
        else
        {
            this.LoggedIn_Left.Visible = false;
            this.NotLoggedIn_Left.Visible = true;
        }
    }
    
}
